.admin-layout {
    min-height: 100vh;
    background: #f0f2f5;
}

/* 侧边栏样式 */
.admin-sider {
    background: linear-gradient(180deg, #001529 0%, #002140 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.admin-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-icon {
    font-size: 24px;
    color: #1890ff;
    filter: drop-shadow(0 0 8px rgba(24, 144, 255, 0.3));
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.admin-menu {
    border-right: none;
    background: transparent;
    padding: 16px 0;
}

.admin-menu .ant-menu-item {
    margin: 4px 8px;
    border-radius: 8px;
    height: 48px;
    line-height: 48px;
    transition: all 0.3s ease;
}

.admin-menu .ant-menu-item:hover {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

.admin-menu .ant-menu-item-selected {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    font-weight: 500;
}

.admin-menu .ant-menu-item-selected::after {
    display: none;
}

.admin-menu .ant-menu-item .anticon {
    font-size: 16px;
    margin-right: 12px;
}

/* 主要内容区域 */
.admin-main {
    background: #f0f2f5;
}

/* 顶部导航栏 */
.admin-header {
    background: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e8e8e8;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.collapse-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.collapse-btn:hover {
    background: #f5f5f5;
    color: #1890ff;
}

.breadcrumb-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: #f5f5f5;
}

.user-avatar {
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.user-info:hover .user-avatar {
    border-color: #1890ff;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
}

.user-role {
    font-size: 12px;
    color: #8c8c8c;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 内容区域 */
.admin-content {
    margin: 24px;
    padding: 0;
    background: transparent;
    min-height: calc(100vh - 112px);
}

.content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: calc(100vh - 136px);
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-header {
        padding: 0 16px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .breadcrumb-title {
        font-size: 16px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-role {
        display: none;
    }
    
    .admin-content {
        margin: 16px;
    }
    
    .content-wrapper {
        min-height: calc(100vh - 96px);
    }
}

@media (max-width: 576px) {
    .admin-sider {
        position: fixed;
        height: 100vh;
        z-index: 1000;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-content {
        margin: 12px;
    }
}

/* 动画效果 */
.admin-layout .ant-layout-sider-collapsed .admin-logo .logo-text {
    opacity: 0;
    transform: scale(0.8);
}

.admin-layout .ant-layout-sider .admin-logo .logo-text {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* 滚动条样式 */
.admin-content::-webkit-scrollbar {
    width: 6px;
}

.admin-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.admin-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
